home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10962 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  693 b 

  1. Path: news1.sympatico.ca!news
  2. From: Gisele Swinson <gisele.swinson@sympatico.ca>
  3. Newsgroups: comp.lang.c
  4. Subject: Rand() Function
  5. Date: 21 Mar 1996 04:28:35 GMT
  6. Organization: Sympatico
  7. Message-ID: <4iqltj$40g@news1.sympatico.ca>
  8. NNTP-Posting-Host: ppp1061.on.sympatico.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22MII (Windows; I; 16bit)
  13.  
  14. How do I get a random number from a "SET" of numbers.
  15.  
  16. e.g.
  17.  
  18.       I want a random number from this set:
  19.  
  20.       2, 4, 6, 8, 10
  21.  
  22. It seems so simple but I can't find anything in my text how to do this.
  23.  
  24. Any help would be appreciated.
  25.  
  26. Thanks
  27.  
  28.  
  29. Gisele
  30.  
  31.  
  32. gisele.swinson@sympatico.ca
  33.  
  34.  
  35.